﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HAVNet.Intros.AST
{
    public class ASTForInitializer : ASTNode
    {
        ASTStatementExpressions _stmtsExprs = null;

        public ASTLocalVarDeclton localVarDeclton { get; set; }
        
        public ASTStatementExpressions stmtsExprs { get { 
            if (_stmtsExprs  == null)
                _stmtsExprs = new ASTStatementExpressions();
            return _stmtsExprs; } }

        public override string ToString()
        {
            if (localVarDeclton == null)
                return stmtsExprs.ToString      ();
            else
                return localVarDeclton.ToString ();
        }
    }
}
